package com.entity;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.enums.IdType;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

import com.baomidou.mybatisplus.annotations.Version;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author wty
 * @since 2021-10-20
 */
@Data
@Accessors(chain = true)
@TableName("mail_text")
public class MailText extends Model<MailText> {

    private static final long serialVersionUID = 1L;

    @TableField(exist = false)
    public final static String ON="1";

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * 状态
     */
    private String status;
    /**
     * 是否开关1打开0关闭
     */
    private String onoroff;
    private Long time;
    /**
     * 按照什么类型通知
     */
    private String type;
    private String title;
    /**
     * 内容
     */
    private String text;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
